package com.liu.servicebase.exceptionhandler;


import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

// 自定义异常处理类
@Data
@AllArgsConstructor
@NoArgsConstructor
public class GuliException extends RuntimeException{

    // 异常处理的状态码
    @ApiModelProperty(value = "状态码")
    private Integer code;

    // 自定义异常处理的的显示信息
    @ApiModelProperty(value = "错误信息")
    private String msg;
}
